package top.revery.api.util;
//import com.tencentyun.TLSSigAPIv2;


import java.util.HashMap;
import java.util.Map;

/**
 * @author denghao
 * @title
 * @package
 * @date 2019/12/31 13:41
 */
public class ImConfig {

    public final static int TENCENT_SDKAPPID = 1400302411;//腾讯云appid
    public final static String TENCENT_PRIVSTR = "-----BEGIN PRIVATE KEY-----";//腾讯云私钥
    public final static  String secretKey="b34e7a8bf568bdf458d31d20a288aae3a6797704661ac40c0f473123a4a98bdb";
    public final static  String defaultIm_admin_account="yunze";

    public final static  String jnisigcheck_window_path ="/dll/jnisigcheck_mt_x64.dll";
   //独立模式账号导入
    public final static  String account_import_address ="https://console.tim.qq.com/v4/im_open_login_svc/account_import?";
    //独立模式账户批量导入
    public final static  String multiaccount_import_address  ="https://console.tim.qq.com/v4/im_open_login_svc/multiaccount_import?";
    // 帐号登录态失效接口
    public final static  String kick_address  ="https://console.tim.qq.com/v4/im_open_login_svc/kick?";
    //批量发单聊消息
    public final static  String send_msg_all  ="https://console.tim.qq.com/v4/openim/batchsendmsg?";
    // 帐号登录态失效接口
    public final static  String send_msg_address  ="https://console.tim.qq.com/v4/openim/sendmsg?";

  //消息回调
    public final static  String send_msg_notify  ="http://b876143268.eicp.net/user/notify";

    public static String getUserSig(String memberId) {


//        tls_sigature.GenTLSSignatureResult result = tls_sigature.GenTLSSignatureEx(TENCENT_SDKAPPID,memberId, secretKey);
//        String urlSig = result.urlSig;
//        System.out.println("1111"+urlSig);urlSig
//        return urlSig;


        return null;



    }

    public static void main(String[] args) {

       /* String i = ""user",'user2','user3'";
        String[] split =  i.split(",");
        List<String> list = new ArrayList<>();
    for (String s :split){
        list.add(s);
    }
        System.out.println(list);*/

        Map<String ,Integer> map = new HashMap<>();
        map.put("u",1);
        map.put("y",2);
        System.out.println(map);

       /* long max = 0xFFFFFFFFL;
        long rand = (long) (max * Math.random());
        System.out.println(rand);*/
      /*  TLSSigAPIv2 api = new TLSSigAPIv2(1400302411, "b34e7a8bf568bdf458d31d20a288aae3a6797704661ac40c0f473123a4a98bdb");
        System.out.print(api.genSig("administrator", 180*86400));*/
    }

}
